﻿using System;
using System.Collections.Generic;
using System.Linq;
using Granite.ComponentModel;
using Granite.Eventing;

namespace Granite.Eventing
{
    ///// <summary>
    ///// The object that is referenced by the eventHandler must keep a reference to this class. 
    ///// </summary>
    //public class DictionaryChangedListener : IDictionaryChangedListener
    //{
    //    readonly Action<object, DictionaryChangedEventArgs> m_EventHandler;

    //    /// <summary>
    //    /// The object that is referenced by the eventHandler must keep a reference to this class. 
    //    /// </summary>
    //    public DictionaryChangedListener(Action<object, DictionaryChangedEventArgs> eventHandler)
    //    {
    //        m_EventHandler = eventHandler;
    //    }

    //    /// <summary>
    //    /// Invokes the assocated delegate
    //    /// </summary>
    //    /// <param name="sender"></param>
    //    /// <param name="e"></param>
    //    public void Invoke(object sender, DictionaryChangedEventArgs e)
    //    {
    //        m_EventHandler(sender, e);
    //    }
    //}
}
